package cn.stylefeng.guns.modular.addressbook.service;

import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
import cn.stylefeng.guns.modular.addressbook.entity.Department;
import cn.stylefeng.guns.modular.addressbook.pojo.request.DepartmentRequest;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  服务类
 *
 * @author xbz
 * @date 2023/04/27 09:19
 */
public interface DepartmentService extends IService<Department> {

	/**
     * 新增
     *
     * @param departmentRequest 请求参数
     * @author xbz
     * @date 2023/04/27 09:19
     */
    void add(DepartmentRequest departmentRequest);

	/**
     * 删除
     *
     * @param departmentRequest 请求参数
     * @author xbz
     * @date 2023/04/27 09:19
     */
    void del(DepartmentRequest departmentRequest);

	/**
     * 编辑
     *
     * @param departmentRequest 请求参数
     * @author xbz
     * @date 2023/04/27 09:19
     */
    void edit(DepartmentRequest departmentRequest);

	/**
     * 查询详情
     *
     * @param departmentRequest 请求参数
     * @author xbz
     * @date 2023/04/27 09:19
     */
    Department detail(DepartmentRequest departmentRequest);

	/**
     * 获取列表
     *
     * @param departmentRequest        请求参数
     * @return List<Department>   返回结果
     * @author xbz
     * @date 2023/04/27 09:19
     */
    List<Department> findList(DepartmentRequest departmentRequest);

	/**
     * 获取列表（带分页）
     *
     * @param departmentRequest              请求参数
     * @return PageResult<Department>   返回结果
     * @author xbz
     * @date 2023/04/27 09:19
     */
    PageResult<Department> findPage(DepartmentRequest departmentRequest);

}